let inputEle = document.querySelector('.input')
let btnEle = document.querySelector('.btn')
inputEle.onkeyup = function(e) {
    if(e.keyCode == 13) {
        apply()
    }
  }
let btnEleChecked = false
btnEle.onclick = function (e) {
    
}
function apply(){
    if (inputEle.value){
        body.innerHTML = `<div><input{%input.value%}/>`+` </div>` +
            `<img scr= '垃圾桶.svg'>`
    }
}
    //*设置滚轮将聊天室的内容自动定位到最新
    function scrollToBottom(ele) {

        if (ele) {
            ele.scrollTop = ele.scrollHeight
        }
    }